
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <fcntl.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <netinet/in.h>
#include <unistd.h>
#include <time.h>
#include <fcntl.h>
#include <iostream>
#include <sys/time.h>
#include <assert.h>


int Nantx_Write(int sock, char *buf, unsigned length );
int Nantx_Write_NOBlock(int sock, char *buf, unsigned length );
int Nantx_Read(int sock, char **wbuf, unsigned &wsize, unsigned &wbytes,  int timeout);
int64_t Nantx_Microtime();
